<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAdverImagesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('adver_images', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('machine_id')->default(0)->comment('设备ID');
            $table->string('adver_name',100)->default('')->comment('广告图片名称');
            $table->string('adver_image',200)->default('')->comment('广告图片');
            $table->tinyInteger('available')->default(0)->comment('0正常,1取消');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('adver_images');
    }
}
